/******************************************************************
 * @version      : 1.0
 * @Author       : zhl
 * @Date         : 2023-06-26 14:04:13
 * @LastEditors  : zhl
 * @E-Mail       : zhll168@163.com
 * @Description  : 业务描述
 ******************************************************************/
#ifndef __LINK_REQUEST_H__
#define __LINK_REQUEST_H__
#include <stdint.h>
#include "DLT698-Frame.h"


class LinkRequest
{
private:
    /* data */
    static LinkRequest  c_link_request;
private:
    
public:
    LinkRequest(/* args */);
    ~LinkRequest();

    static LinkRequest& getInstance();

    int  packet(uint8_t* data, int& len, LINK_REQUEST_TYPE type = LINK_REQ_LOGIN, uint16_t heartbeat_interval = 180, int start = 0);
    int  unpack(uint8_t* data, int& len, int start = 0);
};




#endif /* __LINK_REQUEST_H__ */